package com.gogo.mall.result;

/**
 * @Author: xiyang
 * @FileName: ResponseCode
 * @Date: Created in 2021/7/13 14:46
 * @Vserion:
 * @Description: TODO
 */
public enum ResponseCode {
    SUCCESS("200", "操作成功"),
    FAILED("999999","操作失败"),
    WEB_SUCCESS("1","成功"),
    WEB_FAILED("0","失败"),
    SQLException("101","SQL异常"),
    SytemException("102","系统异常"),
    PARAM_EXCEPTION("103","参数错误"),
    USERINFO_EXCEPTION("104","用户名密码错误"),
    SQL_EXCEPTION("101","SQL异常"),
    SYSTEM_EXCEPTION("102","系统异常"),
    ParamError("000001", "参数错误！"),
    FileEmpty("000400","上传文件为空"),
    FileType("000403","文件类型错误"),
    LimitPictureSize("000401","图片大小必须小于2M"),
    LimitPictureType("000402","图片格式必须为'jpg'、'png'、'jpge'、'gif'、'bmp'"),
    AUTH_EXCEPTION("105","用户信息过期");
    private String code;
    private String msg;
    ResponseCode() {

    }
    ResponseCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCode(){
        return code;
    }

    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }
}
